﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MinhTuan;
public partial class admin_funcion_Adduser : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        String[] admin = Session["Admin"].ToString().Split(',');
        if (int.Parse(admin[0]) < 0)
        {
            Response.Redirect("http://localhost:2011/didong/admin/login.aspx");
        }
    }
    protected void btnsubmit_Click(object sender, EventArgs e)
    {
        string message = AdminUser.AddUser(txtnamelogin.Text, txtfullname.Text, txtpass.Text, true, true, "Minh Tuan");
        Lbmessage.Text = message;
    }
}
